#ifndef BUTTON_H 
#define BUTTON_H

#include "common.h" 

typedef struct button_ 
{
	SDL_Rect rect;
	SDL_Surface* text;
	int toggle_type;
	int toggled;
} button;

void init_button(button* b, char* text, int x, int y, int l, int w, int toggle);
void display_button(SDL_Surface* screen, button* b);
int get_button_toggled(button* b);
int set_button_toggled(button* b, int toggled);
int touch_button(button* b, int x, int y);

#endif
